import React from "react";
import Counter from "./router/Counter";
import Home from "./router/Home";
import User from "./router/User";
import UserAdd from "./router/UserAdd";
import UserList from "./router/UserList";
import Longin from "./router/Longin";
import Logout from "./router/Logout";
import Profile from "./router/Profile";
export default [
  {
    path: "/",
    element: <Home />,

    key: "home",
    title: "首页",
  },
  {
    path: "/counter",
    element: <Counter />,

    key: "counter",
    title: "计数器",
  },
  {
    path: "/user",
    element: <User />,

    key: "user",
    title: "用户管理",
    children:[
      {
        path:"/user/list",
        element:<UserList/>
      },
      {
        path:"/user/add",
        element:<UserAdd/>
      }
    ]
  },
  {
    path: "/login",
    element: <Longin />,
    key: "login",
    title: "登录",
  },
  {
    path: "/logout",
    element: <Logout />,
    key: "logout",
    title: "登出",
  },
  {
    path: "/profile",
    element: <Profile />,
    key: "profile",
    title: "个人中心",
  },
];
